package com.hq.service;

import com.hq.bean.Brand;
import com.hq.bean.Spu;
import com.hq.bean.Typess;
import com.hq.dao.SpuDao;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
@Service
public class SpuServiceImpl implements SpuService{
    @Resource
    private SpuDao dao;

    @Override
    public List<Spu> list(Map map) {
        return dao.list(map);
    }

    @Override
    public List<Brand> brand() {
        return dao.brand();
    }

    @Override
    public List<Typess> typess(Integer pid) {
        return dao.typess(pid);
    }

    @Override
    public int add(Spu spu) {
        return dao.add(spu);
    }

    @Override
    public int del(Integer sid) {
        return dao.del(sid);
    }

    @Override
    public int dels(String sid) {
        return dao.dels(sid);
    }

    @Override
    public Map getById(Integer sid) {
        return dao.getById(sid);
    }

    @Override
    public int upd(Spu spu) {
        return dao.upd(spu);
    }
}
